package com.lottery.game.controller.v2;

import com.lottery.game.core.modules.service.app.OperationalSetService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author : yinlin
 * @version : 1.0
 * @date : 2019-03-28 15:33
 * @Description :
 * @Copyright : Copyright (c) 2018
 * @Company : EasySite Technology Chengdu Co. Ltd.
 * @link : com.lottery.game.controller.v2.TestController
 */
@RestController
public class TestController {

    @Autowired
    private OperationalSetService operationalSetService;

    @GetMapping("robot/{num}")
    @ResponseBody
    public List<Map<String, Object>> query(@PathVariable("num") String num) {
        return operationalSetService.queryRobotData(num);
    }
}
